import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: '/admin'
    },
    {
      path: '/admin',
      name: 'Admin',
      component: () => import('./Home.vue')
    },
    {
      path: '/export',
      name: 'export',
      component: () => import('./Export.vue')
    },
    {
      path: '/pass',
      name: 'pass',
      component: () => import('./Pass.vue')
    },
    {
      path: '/passAdd',
      name: 'passAdd',
      component: () => import('./AddPass.vue')
    },
    {
      path: '/add',
      name: 'add',
      component: () => import('./Add.vue')
    }
    , {
      path: '/setting',
      name: 'setting',
      component: () => import('./Setting.vue')
    }
  ]
});

export default router;
